﻿using UnityEngine;
using System.Collections;

public class newGame : MonoBehaviour {

	public Sprite unpressed;
	public Sprite pressed;
	SpriteRenderer ren;

	void Awake()
	{
		ren = gameObject.GetComponent<SpriteRenderer>();
	}


	 void OnMouseDown()
	{
		ren.sprite = pressed;
	}

	void OnMouseUp()
	{
		ren.sprite = unpressed;
		Application.LoadLevel("level1");
	}

	public void newGameStart()
	{
		Application.LoadLevel("level1");
	}
}
